//package com.neusoft.elmboot.config;
//
//import com.neusoft.elmboot.intercept.AuthHandlerInterceptor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Slf4j
//@Configuration
//public class AuthWebMvcConfigurer implements WebMvcConfigurer {
//
//    @Autowired
//    AuthHandlerInterceptor authHandlerInterceptor;
//
//    /**
//     * 给除了 /userController 的接口都配置拦截器,拦截转向到 authHandlerInterceptor
//     */
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(authHandlerInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/UserController/**");
//    }
//}
